package com.learn.hibernatevalidator.chapter07.valueextractor;

import com.google.common.collect.Multimap;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import jakarta.validation.valueextraction.Unwrapping;
import javafx.beans.property.LongProperty;
import javafx.beans.property.ReadOnlyListProperty;
import javafx.beans.property.StringProperty;
import lombok.Data;

import java.util.OptionalInt;

/**
 * @author: liyf
 * @create: 2025-01-18 22:45
 **/
@Data
public class ContainerOptional {



    @Min(value = 5, payload = Unwrapping.Unwrap.class)
    private OptionalInt optionalInt1;

    @Min(5)
    private OptionalInt optionalInt2;

    @NotNull(payload = Unwrapping.Skip.class)
    @Min(5)
    private OptionalInt optionalInt3;


}
